<?php

$dr = $_SERVER['DOCUMENT_ROOT'];
set_include_path(get_include_path() . PATH_SEPARATOR . "$dr");

include_once 'swot-environment-type.inc';

if ($environment == 'pritmick_dev') {
    $dbHost = 'localhost:3306';
    $dbUser = 'swot';
    $dbPassword = 'swot';
    $dbName = 'swotdb';
    $sitePrefix = '/swot-service';
    $debug = 1;
} else {
    $dbHost = 'localhost:3306';
    $dbUser = 'remarka_swot';
    $dbPassword = '3sadoYbbQKj3oF';
    $dbName = 'remarka_swot';
    $sitePrefix = '';
    $debug = 0;
}

$cookieName = 'swot_sid';

$defaultCounts = array(4, 4, 4, 4);
$minCount = 1;
$maxCount = 10;

$cleanupPeriod = 60;
$sessionPeriod = 60 * 86400;

$sqlDatetime = "Y.m.d H:i:s";
$valuabilities = array("Да", "Нет", "Не знаю", "Скорее да, чем нет", "Скорее нет, чем да");

if (get_magic_quotes_gpc()) {
    foreach ($_POST as $key => $value) {
        $_POST[$key] = stripslashes($value);
    }
    foreach ($_GET as $key => $value) {
        $_GET[$key] = stripslashes($value);
    }
    foreach ($_COOKIE as $key => $value) {
        $_COOKIE[$key] = stripslashes($value);
    }
}

?>
